package heven.holt.wan.android.model

data class BaseModel<T>(
    val errorCode: Int?,//错误码，0表示无错误
    val errorMsg: String?,//错误信息
    val data: T? //返回数据
) {
    val isSuccess: Boolean
        get() = errorCode == null || errorCode == 0
}